package com.health.pojo.dto;

import lombok.Data;
import jakarta.validation.constraints.NotNull;
import com.health.pojo.query.QueryGroup;
import jakarta.validation.constraints.NotBlank;
import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 用户信息
 *
 * @author WUYU_MIN
 * @date 2025-04-29 23:51:18
 */
@Data
public class UserDTO {

    /**
     * 用户id:用户唯一标识
     */
    @Schema(description = "用户id:用户唯一标识")
    private Integer userId;

    /**
     * 用户电话:用户电话，必填
     */
    @Schema(description = "用户电话:用户电话，必填")
    private String phone;

    @Schema(description = "邮箱:邮箱")
    private String email;

    /**
     * 密码:密码，必填
     */
    @NotBlank(groups = { CreateGroup.class }, message = "密码不能为空")
    @Schema(description = "密码:密码，必填")
    private String password;

    /**
     * 核心角色:核心角色，必填
     */
    // @NotBlank(groups = { CreateGroup.class, UpdateGroup.class }, message = "核心角色不能为空")
    @Schema(description = "核心角色:核心角色，必填")
    private String coreRole;
}
